<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{main::head}">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <form class="row justify-content-center">
        <div class="col-5">
            <label for="inputSearch4" class="visually-hidden">查找试卷</label>
            <input type="password" class="form-control" id="inputSearch4" placeholder="查找班级或试卷名称">
        </div>
        <div class="col-auto">
            <button type="submit" class="btn btn-primary mb-3">查找</button>
        </div>
    </form>

    <div class="row justify-content-center">
        <div class="col-6" th:each="pa:${examPaperList}">
            <div class="card">
                <div class="card-header">
                    软件工程Java一班
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text" >应做<span th:text="${pa.classes.students.size()}">35</span>人</p>
                    <p class="card-text">已做<span th:text="${pa.studentPapers.size()}">35</span>人</p>
                </div>
                <div class="card-footer text-muted text-end">
                    <a href="#" class="btn" th:unless="${string}" th:href="@{check/${pa.id_paper}}">自动批改</a>
                    <a href="#" class="btn" th:if="${string}" th:href="@{view-mark/${pa.id_paper}}">查看成绩</a>
                </div>
            </div>

        </div>
        <!--/*-->
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    软件工程Java一班
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">应做35人</p>
                    <p class="card-text">已做30人</p>
                </div>
                <div class="card-footer text-muted text-end">
                    <a href="#" class="btn">自动批改</a>
                    <a href="#" class="btn">查看成绩</a>
                </div>
            </div>

        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    软件工程Java一班
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">应做35人</p>
                    <p class="card-text">已做30人</p>
                </div>
                <div class="card-footer text-muted text-end">
                    <a href="#" class="btn">自动批改</a>
                    <a href="#" class="btn">查看成绩</a>
                </div>
            </div>

        </div>
        <div class="col-6">
            <div class="card">
                <div class="card-header">
                    软件工程Java一班
                </div>
                <div class="card-body">
                    <h5 class="card-title">软件工程章测试</h5>
                    <p class="card-text">应做35人</p>
                    <p class="card-text">已做30人</p>
                </div>
                <div class="card-footer text-muted text-end">
                    <a href="#" class="btn">自动批改</a>
                    <a href="#" class="btn">查看成绩</a>
                </div>
            </div>

        </div>
        <!--*/-->
    </div>
    <nav>
        <ul class="pagination justify-content-end">
            <li class="page-item disabled">
                <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
            </li>
            <li class="page-item"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">2</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item">
                <a class="page-link" href="#">下一页</a>
            </li>
        </ul>
    </nav>
</div>

</body>
</html>